package com.gome.oa.util;

import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;

/**
 *
 * @author: tang li
 * @date: 2016年8月6日
 * @desc: 
 *
 */
public final class ResourceUtil {
	private ResourceUtil() {}
	
	public static BufferedImage getImageResource(String path) {
		try {
			return ImageIO.read(ResourceUtil.class.getResourceAsStream(path));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}
